<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}{{ config('admin.name') ? '-'.config('admin.name') : '' }}</title>

    <!-- Scripts -->
    <script src="{{ mix('js/manifest.js', 'backend') }}" defer></script>
    @if(config('admin.mix_external'))
    <script src="{{ getCdnUrl('static/extends/vendor.js') }}" defer></script>
    @else
    <script src="{{ mix('js/vendor.js', 'backend') }}" defer></script>
    @endif
    <script src="{{ mix('js/app.js', 'backend') }}" defer></script>
    <!-- Styles -->
    <link href="{{ mix('css/app.css', 'backend') }}" rel="stylesheet">
    <script>
        var admin = @json(config('admin'));
        var currency_bullet_scale = {{ getCurrencyBulletScale() }};
        var currency_hb_scale = {{ getCurrencyHbScale() }};
        var currency_ticket_scale = {{ getCurrencyTicketScale() }};
        var cdn_site_url = "{{ getCdnSiteUrl() }}";
        var api_go_url = "{{ config("game.cpl_api_word.apiUrl") }}";
    </script>
</head>
<body>
    <div id="app">
        <transition name="fade" mode="out-in">
            <router-view/>
        </transition>
    </div>
</body>
</html>
